package com.test.sb2._01_initializer;

import com.test.sb2._01_initializer.initializer.SecondInitializer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class InitializerApplication {
    public static void main(String[] args) {
        SpringApplication app = new SpringApplication(InitializerApplication.class);
        //方式2
        //app.addInitializers(new SecondInitializer());
        app.run(args);

    }
}
